package com.lc.luzhengtang.adapter;

import android.view.ViewGroup;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.lc.luzhengtang.R;
import com.zcx.helper.scale.ScaleScreenHelperFactory;

import java.util.List;


/**
 * Created by Administrator on 2017/1/22.
 */

public class WaitingCommentFragmentAdapter extends BaseQuickAdapter<String, BaseViewHolder> {
    public WaitingCommentFragmentAdapter(List<String> data) {

        super(R.layout.item_fragment_waiting_comment, data);
    }


    @Override
    protected void convert(BaseViewHolder helper, String item) {
        ScaleScreenHelperFactory.getInstance().loadView((ViewGroup) helper.convertView);
        helper.setText(R.id.text_nicheng, item);
        helper.setText(R.id.text_money, item);
        helper.setText(R.id.text_xiaoliang, item);

        //  helper.setImageResource(R.id.img_index, Glide.with(mContext).load("").into(imageView) );
        Glide.with(mContext).load("http://img04.tooopen.com/images/20131115/sy_47505221718.jpg").crossFade().into((ImageView) helper.getView(R.id.img_index));
    }
}
